package com.hsd.whb.pojo.query;

import com.hsd.whb.entity.Meeting;
import com.wangjiacai.hqlQuery.hql.ClassName;
import com.wangjiacai.hqlQuery.hql.Ignore;
import com.wangjiacai.hqlQuery.hql.condition.where.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@ClassName(Meeting.class)
public class QueryMeeting {

    @In(column = "recorderId")
    private List<Integer> recorderIdList;

    /*
     *记录员id
     */
    @Equal
    private Integer recorderId;
    /*
     *记录员名称
     */
    @Ignore
    private String username;


    /*
     *标题
     */
    private String title;


    /*
     *开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Great(column = "startTime")
    private Date startTime;

    /*
     *结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Less(column = "startTime")
    private Date endTime;

    /*
     *会议状态
     */
    @Equal
    private Integer meetingStatus;

    @NotEqual(column = "meetingStatus")
    private Integer meetingStatusNotIn;

    /*
     *管理员id
     */
    @Equal
    private Integer managerId;


    /*
     *删除
     */
    @Equal
    private Integer deleted;

}
